package edu.sctu.zhengsenwen.month201506.day20150624;

/**
 * Created by user15 on 2015/6/28.
 */
class PaintThread implements Runnable {
    public void run() {
        while (true) {
            repaint();     //重画相当于反复调用paint()方法  
            try {
                Thread.sleep(40);//为了不太耗cpu，大约40ms重画一次，大约1s25张图片  
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    private void repaint() {

    }
}  
